package com.zwh.spring.demo.properties;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class Blog {
	
	@Value("${com.spring.blog.value}")
	private String value;
	@Value("${com.spring.blog.number}")
	private int number;
	@Value("${com.spring.blog.bignumber}")
	private long bignumber;
	@Value("${com.spring.blog.test1}")
	private int test1;
	@Value("${com.spring.blog.test2}")
	private int test2;
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public int getNumber() {
		return number;
	}
	public void setNumber(int number) {
		this.number = number;
	}
	public long getBignumber() {
		return bignumber;
	}
	public void setBignumber(long bignumber) {
		this.bignumber = bignumber;
	}
	public int getTest1() {
		return test1;
	}
	public void setTest1(int test1) {
		this.test1 = test1;
	}
	public int getTest2() {
		return test2;
	}
	public void setTest2(int test2) {
		this.test2 = test2;
	}

	@Override
	public String toString() {
		return String.format("value:%s, number:%s, bignumber:%s, test1:%s, test2:%s", 
				value, number, bignumber, test1, test2);
	}
}
